package com.flyco.modules.stm.entity;

/**
 * @Author hui_li
 * @Date 2020/11/12 13:06
 * @Version 1.0
 */
public enum InoutType {
    STOCK_IN("入库"),
    STOCK_OUT("出库")
    ;

    public String getTitle() {
        return title;
    }

    public static String getTitle(String title){
        try {
            InoutType inoutType = InoutType.valueOf(title.toUpperCase());
            return inoutType.title;
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
        }
        return null;
    }

    private String title;

    InoutType(String title) {
        this.title = title;
    }

}
